home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / utils / ab2ascii-1.3 / DMakefile < prev    next >
Makefile  |  1996-09-11  |  2KB  |  58 lines

  1. #
  2. # DMakefile for the AmigaBASIC -> ASCII converter
  3. #
  4. # (c)Copyright 1994 by Tobias Ferber.
  5. #
  6. # This file is part of AmigaBASIC->ASCII.
  7. #
  8. # AmigaBASIC->ASCII is free software; you can redistribute it and/or
  9. # modify it under the terms of the GNU General Public License as
  10. # published by the Free Software Foundation; either version 1 of the
  11. # License, or (at your option) any later version.
  12. #
  13. # AmigaBASIC->ASCII is distributed in the hope that it will be useful,
  14. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  16. # GNU General Public License for more details.
  17. #
  18. # You should have received a copy of the GNU General Public License
  19. # along with AmigaBASIC->ASCII; see the file COPYING.  If not, write to
  20. # the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  21. #
  22.  
  23. rm= delete quiet
  24. CC= dcc
  25. CFLAGS= -s -DDEBUG
  26. #CFLAGS= -s -DDEBUG -prof1
  27.  
  28. all: ab2ascii
  29.  
  30. ab2ascii: main.o args.o flist.o symbols.o codelines.o expand.o tokens.o
  31.   $(CC) $(CFLAGS) -lm -o%(left) %(right)
  32.  
  33. main.o: main.c abasic.h abasic2ascii.c
  34.   $(CC) $(CFLAGS) -c -o%(left) %(left:"*.o":"*.c")
  35.  
  36. args.o: args.c
  37.   $(CC) $(CFLAGS) -c -o%(left) %(right)
  38.  
  39. flist.o: flist.c
  40.   $(CC) $(CFLAGS) -c -o%(left) %(right)
  41.  
  42. symbols.o: symbols.c abasic.h
  43.   $(CC) $(CFLAGS) -c -o%(left) %(left:"*.o":"*.c")
  44.  
  45. codelines.o: codelines.c abasic.h
  46.   $(CC) $(CFLAGS) -c -o%(left) %(left:"*.o":"*.c")
  47.  
  48. expand.o: expand.c abasic.h
  49.   $(CC) $(CFLAGS) -c -o%(left) %(left:"*.o":"*.c")
  50.  
  51. tokens.o: tokens.c
  52.   $(CC) $(CFLAGS) -c -o%(left) %(right)
  53.  
  54. # --- clean
  55.  
  56. clean:
  57.   $(rm) ab2asci main.o args.o flist.o symbols.o codelines.o expand.o tokens.o
  58.